package com.googlecode.continuity.sample.basic.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;
import com.googlecode.continuity.core.client.AdminPage;
import com.googlecode.continuity.plugin.gwtext.client.AbstractTabPanel;
import com.googlecode.continuity.plugin.gwtext.client.HasPosition;
import com.googlecode.continuity.plugin.gwtext.client.TabPanel;

/**
 * AdminPanelStandard
 *
 * @author Peter Schmitt <aragos@aragos.de>
 */
public class AdminPanelStandard extends AbstractTabPanel implements EntryPoint, TabPanel {

  public void onModuleLoad() {
    tabBar.setPosition(HasPosition.POSITION_LEFT);

    RootPanel.get("col1_content").add(tabBar);
    RootPanel.get("col3_content").add(deck);

    tabBar.setHeight("100%");
    tabBar.setWidth("100%");

    tabBar.addTabListener(this);
    deck.setStyleName("tabPanelContent");
    deck.setStyleName("configMain");
    AdminPage.setAdminPanel(this);
  }
}
